//
//  NSMutableArray+Category.m
//  HMDemo
//
//  Created by mengxiangyu on 2017/6/21.
//  Copyright © 2017年 mengxiangyu. All rights reserved.
//

#import "NSMutableArray+Category.h"

@implementation NSMutableArray (Category)
- (void)addUnnilObject:(id)anObject {
    if (anObject) {
        [self addObject:anObject];
    } else {
        NSLog(@"can't add an nil object");
    }
}

- (void)insertUnnilObject:(id)anObject atIndex:(NSUInteger)index {
    if (anObject) {
        [self insertObject:anObject atIndex:index];
    } else {
        NSLog(@"can't insert an nil object");
    }
}
@end
